---
title: Kbd
description: "`Kbd` is a component that represents keyboard input."
storybook: components-kbd--basic
source: components/kbd
style: components/kbd/kbd.style.ts
---

```tsx preview
<Text>
  <Kbd>Shift</Kbd> + <Kbd>Tab</Kbd>
</Text>
```

## Usage

:::code-group

```tsx [package]
import { Kbd } from "@yamada-ui/react"
```

```tsx [alias]
import { Kbd } from "@/components/ui"
```

```tsx [monorepo]
import { Kbd } from "@workspaces/ui"
```

:::

```tsx
<Kbd />
```

### Change Variant

```tsx preview
<VStack>
  <For each={["solid", "subtle", "surface", "outline"]}>
    {(variant, index) => (
      <Text key={index}>
        <Kbd variant={variant}>Shift</Kbd> + <Kbd variant={variant}>Tab</Kbd>
      </Text>
    )}
  </For>
</VStack>
```

### Change Size

```tsx preview
<VStack>
  <For each={["sm", "md", "lg"]}>
    {(size, index) => (
      <Text key={index}>
        <Kbd size={size}>Shift</Kbd> + <Kbd size={size}>Tab</Kbd>
      </Text>
    )}
  </For>
</VStack>
```

### Change Color Scheme

```tsx preview
<VStack>
  <For each={["success", "warning"]}>
    {(colorScheme, index) => (
      <Text key={index}>
        <Kbd colorScheme={colorScheme}>Shift</Kbd> +{" "}
        <Kbd colorScheme={colorScheme}>Tab</Kbd>
      </Text>
    )}
  </For>
</VStack>
```

## Props

<PropsTable name="kbd" />
